{% extends "../main.html" %}
{% block nem %}
<ul class="nav nav-sidebar">
    <li><a href="/users">用户管理</a></li>
    <li><a href="/users_group">组管理</a></li>

</ul>
{% end %}
{% block bodyy %}
<h3 class="sub-header" content="">更新主机组</h3>
    <div class="panel-body">
        <form class="form-horizontal" action="/hosts_group/update" method="post">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">ID号</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="id" value={{data[0][0]}} readOnly="true">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">组名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="groupname" value="{{data[0][1]}}">
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-offset-5 col-sm-10">
                    <button type="submit" class="btn btn-primary" name="cmd" value="update">更新</button>
                    <button type="submit" class="btn btn-danger" name="cmd" value="false">取消</button>
                </div>
            </div>
        </form>
    </div>
{% end %}
